package lines.gameengine.context;

import lines.gameengine.tracer.IFieldTracer;
import lines.gameengine.util.IBallGenerator;
import lines.gameengine.util.ICellsChooser;
import lines.gameengine.util.IScoreHolder;

/**
 * @author vpotapenko
 */
public abstract class FieldContextHolder {

    private final IFieldContext context;

    protected FieldContextHolder(IFieldContext context) {
        this.context = context;
    }

    protected IFieldContext getContext() {
        return context;
    }

    protected IScoreHolder getScoreHolder() {
        return context.getScoreHolder();
    }

    protected FieldParameters getParameters() {
        return context.getParameters();
    }

    protected IFieldTracer getTracer() {
        return context.getTracer();
    }

    protected IBallGenerator getBallGenerator() {
        return context.getBallGenerator();
    }

    protected ICellsChooser getCellsChooser() {
        return context.getCellsChooser();
    }
}
